package com.example.sxy_smartpark

import android.app.Application
import androidx.databinding.ktx.BuildConfig
import androidx.room.Room
import com.alibaba.android.arouter.launcher.ARouter
import com.example.lib_base.app.BaseApp
import com.example.lib_db.db.room.RoomDBUtils
//import coil3.ImageLoader
//import coil3.PlatformContext
//import coil3.SingletonImageLoader
//import coil3.network.okhttp.OkHttpNetworkFetcherFactory
//import coil3.request.crossfade
import com.facebook.drawee.backends.pipeline.Fresco
import com.squareup.picasso.Picasso
import com.tencent.mmkv.MMKV
import dagger.hilt.android.HiltAndroidApp
//SingletonImageLoader.Factory
@HiltAndroidApp
class ParkApp:BaseApp(){
    override fun onCreate() {
        super.onCreate()

        MMKV.initialize(this)
        //Room数据库初始化
        RoomDBUtils.initRoom(this)
        if (BuildConfig.DEBUG){
            ARouter.openDebug()
            ARouter.openLog()
        }
        ARouter.init(this)
    }
//    override fun newImageLoader(context: PlatformContext): ImageLoader {
//        return ImageLoader.Builder(context)
//            .crossfade(true).build()
//
//    }
}